package com.dianqiu.common.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import com.dianqiu.base.bean.BaseTO;

/**
 * DqCountry entity. @author David Dai
 */
@Entity
@Table(name = "dq_country", catalog = "dq_dev")
public class DqCountryTO extends BaseTO implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer countryId;
	private String countryName;
	private String countryNameEn;
	private String countryNameSc;
	private String countryNameTs;
	private Integer countrySupId;
	private String countryInd;
	private Set<DqLeaguesTO> dqLeagueses = new HashSet<DqLeaguesTO>(0);

	@Id
	@Column(name = "COUNTRY_ID", unique = true, nullable = false)
	public Integer getCountryId() {
		return this.countryId;
	}

	public void setCountryId(Integer countryId) {
		this.countryId = countryId;
	}

	@Column(name = "COUNTRY_NAME", length = 45)
	public String getCountryName() {
		return this.countryName;
	}

	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}

	@Column(name = "COUNTRY_NAME_EN", nullable = false, length = 200)
	public String getCountryNameEn() {
		return this.countryNameEn;
	}

	public void setCountryNameEn(String countryNameEn) {
		this.countryNameEn = countryNameEn;
	}

	@Column(name = "COUNTRY_NAME_SC", length = 200)
	public String getCountryNameSc() {
		return this.countryNameSc;
	}

	public void setCountryNameSc(String countryNameSc) {
		this.countryNameSc = countryNameSc;
	}

	@Column(name = "COUNTRY_NAME_TS", length = 200)
	public String getCountryNameTs() {
		return this.countryNameTs;
	}

	public void setCountryNameTs(String countryNameTs) {
		this.countryNameTs = countryNameTs;
	}

	@Column(name = "COUNTRY_SUP_ID")
	public Integer getCountrySupId() {
		return this.countrySupId;
	}

	public void setCountrySupId(Integer countrySupId) {
		this.countrySupId = countrySupId;
	}

	@Column(name = "COUNTRY_IND", nullable = false, length = 1)
	public String getCountryInd() {
		return this.countryInd;
	}

	public void setCountryInd(String countryInd) {
		this.countryInd = countryInd;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqCountry")
	public Set<DqLeaguesTO> getDqLeagueses() {
		return this.dqLeagueses;
	}

	public void setDqLeagueses(Set<DqLeaguesTO> dqLeagueses) {
		this.dqLeagueses = dqLeagueses;
	}

}